package top.chenyaohua.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertieUtils {

    public final synchronized static Properties getProperties(String path){

        InputStream resourceAsStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
        Properties properties = new Properties();
        try {
            properties.load(resourceAsStream);
        } catch (IOException e) {
            e.printStackTrace();
        }

        return properties;
    }
}
